﻿<%@ Page Language="C#" CodeBehind="Terminals.aspx.cs" Inherits="Yglu.WebAdmin.Terminals_aspx" MasterPageFile="~/MainLayout.master" %>
<%@ MasterType TypeName="Yglu.WebAdmin.MainLayout_master" %>
<asp:Content ContentPlaceHolderID="MainContents" runat="server">
	<asp:Panel ID="PanEdit" CssClass="PanEditForm" runat="server">
		<fieldset class="FormField">
			<legend><asp:Literal ID="LitEditLegend" runat="server" /></legend>
			<ol>
				<li>
					<asp:Label AssociatedControlID="TxtTerminalId" meta:resourcekey="LblTerminalId" runat="server" />
					<asp:TextBox ID="TxtTerminalId" CssClass="FormText" Width="100px" meta:resourcekey="TxtTerminalId" runat="server" />
				</li>
				<li>
					<asp:Label AssociatedControlID="TxtTerminalUniqueId" meta:resourcekey="LblTerminalUniqueId" runat="server" />
					<asp:TextBox ID="TxtTerminalUniqueId" CssClass="FormText" Width="360px" meta:resourcekey="TxtTerminalUniqueId" runat="server" />
				</li>
				<li>
					<asp:Label AssociatedControlID="CboStore" meta:resourcekey="LblStore" runat="server" />
					<asp:DropDownList ID="CboStore" CssClass="FormSelect" Width="200px" DataTextField="Title" DataValueField="Id" meta:resourcekey="CboStore" runat="server" />
				</li>
				<li>
					<asp:Label AssociatedControlID="ChkTerminalActive" meta:resourcekey="LblTerminalActive" runat="server" />
					<asp:CheckBox ID="ChkTerminalActive" meta:resourcekey="ChkTerminalActive" runat="server" />
				</li>
			</ol>
			<div class="FormFooterBar">
				<asp:Button CssClass="FormButton" OnClick="ButSave_Click" meta:resourcekey="ButSave" runat="server" />
				<asp:Button CssClass="FormButton" OnClick="ButCancel_Click" CausesValidation="false" meta:resourcekey="ButCancel" runat="server" />
				<asp:ValidationSummary CssClass="ValSummary" DisplayMode="List" ShowSummary="true" HeaderText="<%$ Resources:Messages,ValidationSummary %>" runat="server" />
			</div>
		</fieldset>
	</asp:Panel>
	<asp:Panel ID="PanGrid" runat="server">
		<asp:Button ID="ButAddNew" CssClass="FormButton ButtonAddNew" OnClick="ButAddNew_Click" meta:resourcekey="ButAddNew" runat="server" />
		<asp:Label ID="LblGridCount" meta:resourcekey="LblGridCount" runat="server" />
		<asp:GridView ID="GridTerminals" OnRowCommand="GridTerminals_RowCommand" runat="server">
			<Columns>
				<asp:BoundField DataField="Id" SortExpression="Id" ReadOnly="true" meta:resourcekey="GridColId" />
				<asp:BoundField DataField="UniqueId" SortExpression="UniqueId" ReadOnly="true" meta:resourcekey="GridColUniqueId" />
				<asp:BoundField DataField="StoreTitle" SortExpression="StoreTitle" ReadOnly="true" meta:resourcekey="GridColStore" />
				<asp:BoundField DataField="Active" SortExpression="Active" ReadOnly="true" meta:resourcekey="GridColActive" />
				<asp:ButtonField AccessibleHeaderText="Edit" meta:resourcekey="GridColEdit" />
			</Columns>
		</asp:GridView>
	</asp:Panel>
</asp:Content>